package com.example.mybatisdemo.entity;

import java.math.BigDecimal;

/**
 * @author swxu_2005@163.com
 * @date 2018/12/13
 */
/*
  建表语句如下：
  CREATE TABLE student(
    id      BIGINT  NOT NULL,
    name    VARCHAR(32)  NOT NULL,
    sex     CHAR(1) NOT NULL,
    address VARCHAR(128),
    score   DECIMAL(5,2),
    avg_score DECIMAL(5,2),
    PRIMARY KEY(id)
  );
 */
public class StudentDO {

  private Long id;

  private String name;

  private String sex;

  private String address;

  private BigDecimal score;

  private BigDecimal avgScore;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getSex() {
    return sex;
  }

  public void setSex(String sex) {
    this.sex = sex;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }

  public BigDecimal getScore() {
    return score;
  }

  public void setScore(BigDecimal score) {
    this.score = score;
  }

  public BigDecimal getAvgScore() {
    return avgScore;
  }

  public void setAvgScore(BigDecimal avgScore) {
    this.avgScore = avgScore;
  }
}
